package com.gitee.neuray.security.modules.param.dao;

import com.gitee.neuray.security.modules.param.entity.EngineItemEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 发动机表
 * 
 * @author neuray
 * @email neuray@neuray.com
 * @date 2020-09-17 09:59:45
 */
@Mapper
public interface EngineItemDao extends BaseMapper<EngineItemEntity> {
    void createTable(@Param("list") List<String> list, @Param("tableName") String tableName);

    void dropTable(@Param("tableName") String tableName);

    void dropTables(@Param("list") List<String> list);

    List<Map> queryTableColumn(@Param("tableName") String tableName);

    List<Map> getParamByTable(@Param("tableName") String tableName);

    List<Map> getParamByPage(@Param("deptId") Long deptId, @Param("tableName") String tableName,@Param("pageNo") int pageNo,@Param("pageSize") int pageSize);

    int getCountByTable(@Param("tableName") String tableName);

    Map getExcelTitleById(@Param("id")String id);
    EngineItemEntity getTableNameById(@Param("id")String id);

    List<EngineItemEntity> queryListByPage(Map param);
}
